Conversation
Adds a SKILL.md that provides agents with context on how feature flags work in Primer React, including architecture, usage patterns, testing, Storybook integration, and the feature flag lifecycle.
|
There was a problem hiding this comment.
Pull request overview
Adds a Copilot “skill” document to provide consistent, repo-specific guidance for implementing and working with feature flags in @primer/react, including architecture, naming, testing, and Storybook workflows.
Changes:
- Added a new skill file documenting Primer React feature flag architecture and usage patterns
- Included examples for adding flags, using
useFeatureFlag, testing viaFeatureFlags, and Storybook usage - Documented feature-flag lifecycle and
FeatureFlagScopemerge behavior
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
🤖 Formatting issues have been automatically fixed and committed to this PR. |
hectahertz
left a comment
There was a problem hiding this comment.
This is great, really useful to have the full lifecycle documented in one place.
Two small things worth considering:
-
The "Temporarily testing in Dotcom CI" tip (set flag to
trueinDefaultFeatureFlags.ts, set it back before merging) might be a bit risky as a skill instruction, since an agent could follow the first half literally and miss the rollback. Maybe worth either dropping it or adding a strong "do not merge with the flag set to true" warning. -
The
descriptionfrontmatter is pretty dense. Might be worth testing whether a shorter trigger description improves skill matching reliability, but not a big deal either way.
Adds a Copilot skill (
SKILL.md) that provides agents with context on how feature flags work in Primer React. When an agent is asked to implement, create, test, or debug a feature flag, this skill is automatically loaded to provide the relevant architecture, patterns, and conventions.The skill covers:
DefaultFeatureFlags.ts→useFeatureFlaghook)primer_react_*, snake_case)FeatureFlagsproviderFeatureFlagScopemerging behavior)Changelog
New
.github/skills/feature-flags/SKILL.mdCopilot skill for feature flag guidanceChanged
Removed
Rollout strategy
Testing & Reviewing
This is a documentation-only change (a Copilot skill). To verify it works:
Merge checklist